FROM openjdk:8-jre
VOLUME /tmp
EXPOSE 8017
ADD integration-0.0.1-SNAPSHOT.jar integration.jar
ENV LANG=C.UTF-8 \
    LANGUAGE=zh_CN.UTF-8 \
    LC_ALL=C.UTF-8 \
    TZ=Asia/Shanghai
RUN bash -c 'touch integration.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-server","-XX:MetaspaceSize=128m","-XX:MaxMetaspaceSize=128m","-Xms384m","-Xmx384m","-Xmn200m","-Xss256k","-XX:SurvivorRatio=8","-XX:+UseConcMarkSweepGC","-jar","integration.jar"]